home *** CD-ROM | disk | FTP | other *** search
/ IRIX 5.3 for Indy R4400 / IRIX 5.3 for Indy R4400 175MHz.img / dist / eoe2.idb / usr / src / rcs / DIFFsource.Z / DIFFsource / Makefile < prev    next >
Makefile  |  1995-02-28  |  3KB  |  84 lines

  1. # Makefile for GNU DIFF
  2. # Copyright (C) 1988, 1989 Free Software Foundation, Inc.
  3.  
  4. include $(ROOT)/usr/include/make/commondefs
  5.  
  6. # This file is part of GNU DIFF, as ported to Silicon Graphics systems.
  7.  
  8. # GNU DIFF is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 1, or (at your option)
  11. # any later version.
  12. # GNU DIFF is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. # GNU General Public License for more details.
  16. # You should have received a copy of the GNU General Public License
  17. # along with GNU DIFF; see the file COPYING.  If not, write to
  18. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  19. #
  20. # Report problems and direct all questions to:
  21. #
  22. #       Your Silicon Graphics representative
  23. #       or the Silicon Graphics Geometry Hotline.
  24. #
  25. # This Makefile has been radically altered by SGI from the one
  26. # in the original 1.15 diff release distributed by the Free
  27. # Software Foundation, to better fit the Makefile tools
  28. # supplied by SGI.  Those porting this diff command to
  29. # non-SGI systems should examine the original diff Makefile
  30. # from FSF, as it contains instructions and options designed
  31. # to facilitate ports to various systems.  A copy of the original
  32. # Makefile is included in this source as: Makefile.gnu.orig
  33. #
  34. # Those modifying and porting diff for use on SGI systems
  35. # should find this Makefile well suited for their needs.
  36.  
  37. LCDEFS=-Dsparc
  38. LCOPTS=-Olimit 1400
  39.  
  40. USRBIN=/usr/bin
  41.  
  42. SOURCEDIR=/usr/src/rcs
  43. DIFFSOURCE=DIFFsource.Z
  44. LDIRT=DIFFsource.Z
  45.  
  46. TARGETS=diff diff3
  47.  
  48. CFILES=diff.c analyze.c io.c context.c ed.c normal.c ifdef.c util.c dir.c \
  49.     version.c regex.c limits.h diff3.c alloca.c
  50.  
  51. HFILES=diff.h regex.h
  52.  
  53. DIFFOBJS=diff.o analyze.o io.o context.o ed.o normal.o util.o dir.o regex.o\
  54.     ifdef.o version.o
  55.  
  56. DIFF3OBJS=diff3.o
  57.  
  58. GNUSRCFILES=$(CFILES) $(HFILES) README diagmeet.note Makefile COPYING ChangeLog \
  59.     getopt*.c Makefile.gnu.orig Changes.gnu-sgi.README Changes.gnu-sgi.diff.out
  60.  
  61. default: $(TARGETS)
  62.  
  63. include $(COMMONRULES)
  64.  
  65. diff3: diff3.o
  66.     $(CCF) -o $@ $(DIFF3OBJS) $(LDFLAGS)
  67.  
  68. diff: $(DIFFOBJS)
  69.     $(CCF) -o $@ $(DIFFOBJS) $(LDFLAGS)
  70.  
  71. diff3.o: diff3.c
  72.     $(CCF) -c -DDIFF_PROGRAM=\"$(USRBIN)/diff\" diff3.c
  73.  
  74. install: default ${DIFFSOURCE}
  75.     $(INSTALL) -F $(SOURCEDIR) "$(DIFFSOURCE)"
  76.     $(INSTALL) -F $(USRBIN) diff
  77.     $(INSTALL) $(I_FLAGS) -F $(USRBIN) diff3
  78.  
  79. DIFFsource.Z:
  80.     /bin/ls ${GNUSRCFILES} | cpio -ocL > DIFFsource
  81.     compress DIFFsource
  82.